package javaz.jaxb.xml;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Customer", propOrder = { "name", "phone", "email", "joinDate", "status" })
public class DataCustomer {

	@XmlAttribute(name = "Name", required = true)
	private String name = "Cus name";

	@XmlAttribute(name = "Address", required = true)
	private String address = "Cus address";

	@XmlAttribute(name = "Phone", required = true)
	private String phone = "Cus phone";

	@XmlElement(name = "Email", required = true)
	private String email = "Cus email";

	@XmlElement(name = "JoinDate", required = true)
	@XmlSchemaType(name = "dateTime")
	private Date joinDate = new Date();

	@XmlElement(name = "Status", required = true)
	@XmlSchemaType(name = "boolean")
	private Boolean status = Boolean.TRUE;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getJoinDate() {
		return joinDate;
	}

	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

}
